<%@ page import="top.huhuiyu.study.javawebjdbc.dao.TbMovieDAO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
</head>
<body>

<%
  request.setCharacterEncoding("UTF-8");
  Integer id = Integer.parseInt(request.getParameter("id"));
  TbMovieDAO.delete(id);
%>

<script>
  alert("删除成功");
  location.href = "list.jsp";
</script>

</body>
</html>
